package com.woniu.model.mallSystem.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderVo {
    @ApiModelProperty("订单表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty("订单编号")
    private String orderNumber;

    @ExcelProperty("商品名")
    private String name;

    @ExcelProperty("用户账户")
    private String userName;

    @ExcelProperty("购买数量")
    private Integer buyCount;

    @ExcelProperty("订单金额")
    private BigDecimal totalPrice;

    @ExcelProperty(value = "下单时间")
    private Date createTime;

    @ExcelProperty(value = "更新时间")
    private Date updateTime;

    @ExcelProperty("订单来源（1app，2pc，3小程序）")
    private String orderOrigin;

    @ExcelProperty("支付方式0，未支付，1微信，2支付宝")
    private String payMethod;

    @ExcelProperty("订单状态待支付、已支付、待发货、已发货、已完成、已关闭）")
    private Integer orderStatus;

    @ExcelProperty("地址id")
    private Long addressId;

    @ExcelProperty("用户")
    private Long userId;

    private String province;

    private String city;

    private String county;

    private String specificAddress;

    private String orderAddr;       // 收货地址省+市+区

    private String telphone;

    private String emailCode;

    private String logisticsNumber;

}
